package com.kevin.mybatis.loadyml;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource(value = {"classpath:test.yml"}, factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "security")
@Getter
@Setter
@ToString
public class Test {


    private String name;
    private Integer age;
    private String hobby;


}
